package com.jk;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by 动物的 on 2017/12/19.
 */
@SpringBootApplication
@ImportResource("classpath:spring-dubbo-customer.xml")
@ServletComponentScan
//导入spring的配置文件 相当为web.xml中的spring监听功能
public class MyBoot {
    public static void main(String[] args) {
        SpringApplication.run(MyBoot.class,args);
    }
}
